package com.kuang;

import com.kuang.onfig.ConfigUser;
import com.kuang.pojo.User;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class test {
    /**
     * 测试内容:
     */
    @Test
    public void test01(){
       ApplicationContext context = new AnnotationConfigApplicationContext(ConfigUser.class);
        User getUser = context.getBean("getUser", User.class);
        System.out.println(getUser.getName());

    }
}
